<div class="panel panel-default">
	<div class="panel-heading"><i class="fa fa-fw fa-cog"></i> <?php echo $page_title ?></div>
	<div class="panel-body">
		<form action="<?php echo site_url('user/update_setting') ?>" method="post">
			<?php foreach($user as $user_rec): ?>
				<label>Username <small class="lbl-sm lbl-sm-danger">Username can't be changed</small></label>
				<input type="text" class="form-control input-sm" value="<?php echo $user_rec['jonu_user_username'] ?>" disabled="disabled"/>
				<label>Fullname</label>
				<input type="text" name="usr_fullname" class="form-control input-sm" value="<?php echo $user_rec['jonu_user_fullname'] ?>" required="required"/>
				<label>Email</label>
				<input type="email" name="usr_email" class="form-control input-sm" value="<?php echo $user_rec['jonu_user_email'] ?>" required="required"/>
				<label>Jenis Kelamin</label>
				<div class="btn-group" data-toggle="buttons" style="display:block;">
					<?php if(strtolower($user_rec['jonu_user_sex']) == "pria"): ?>
						<label class="btn btn-sm btn-danger active">
							<input type="radio" name="usr_jk" value="Pria" checked="checked" required="required"> Pria
						</label>
					<?php else: ?>
						<label class="btn btn-sm btn-danger">
							<input type="radio" name="usr_jk" value="Pria"> Pria
						</label>
					<?php endif; ?>

					<?php if(strtolower($user_rec['jonu_user_sex']) == "wanita"): ?>
						<label class="btn btn-sm btn-danger active">
							<input type="radio" name="usr_jk" value="Wanita" checked="checked"> Wanita
						</label>
					<?php else: ?>
						<label class="btn btn-sm btn-danger">
							<input type="radio" name="usr_jk" value="Wanita"> Wanita
						</label>
					<?php endif; ?>
				</div>
				<input type="submit" class="btn btn-jonu" name="btn_update_user" value="Update Setting" style="float:right !important;margin-top:10px;" />
			<?php endforeach; ?>
		</form>
	</div>
</div>


